﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MagicBag.CRM.Model;

namespace MagicBag.CRM.IDAL
{
    /// <summary>
    /// 菜单数据访问接口
    /// </summary>
    public interface IMenu
    {
        /// <summary>
        /// 添加菜单
        /// </summary>
        /// <param name="Menu"></param>
        /// <returns></returns>
        int Insert(Menu menu);

        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int Delete(int id);

        /// <summary>
        /// 修改菜单
        /// </summary>
        /// <param name="Menu"></param>
        /// <returns></returns>
        int Update(Menu menu);

        /// <summary>
        /// 根据ID获取菜单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Menu GetMenu(int id);

        /// <summary>
        /// 获取所有菜单
        /// </summary>
        /// <returns></returns>
        IList<Menu> GetMenus();
    }
}
